package com.library.librarybackend.domain.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author 平
 * @description 登录用户信息
 * @since 2025-09-20 20:57
 */
@Data
public class UserVO {

    /**
     * 主键id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "主键id")
    private Long id;

    /**
     * 账号
     */
    @Schema(description = "账号")
    private String account;

    /**
     * 角色(0:root、1:admin、2:user)
     */
    @Schema(description = "角色(0:root、1:admin、2:user)")
    private Integer role;

    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;

    /**
     * 年龄
     */
    @Schema(description = "年龄")
    private Integer age;

    /**
     * 性别(0:女,1:男)
     */
    @Schema(description = "性别(0:女,1:男)")
    private Integer gender;

    /**
     * 头像
     */
    @Schema(description = "头像")
    private String avatar;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    private String email;

    /**
     * 电话
     */
    @Schema(description = "电话")
    private String phone;

}
